<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
      类就是函数
      1. 函数是函数也是对象
      2. 类是类也是对象
      */
      class Person {
        username = "lili";
      }
      // Person = {}
      Person.username = "jack"; //静态属性
      Person.say = function () {
        // 静态方法
        console.log(this.username);
      };

      Person.say();
    </script>
  </body>
</html>
